package com.kate.mall.order.price;

import com.kate.mall.order.dto.OrderItemDTO;
import com.kate.mall.order.dto.PromotionActivityDTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Description: 没有促销活动的计算组件
 * @Auther: 新梦想*陈超
 * @Date: 2021/10/30 19:35
 */
@Component
@Slf4j
public class DefaultPromotionActivityCalculator implements PromotionActivityCalculator {
	
	/**
	 * 计算促销活动减免的金额
	 */
	@Override
	public PromotionActivityResult calculate(OrderItemDTO item, PromotionActivityDTO promotionActivity) throws Exception {
		log.info("====默认的活动总价计算器，计算活动见面价为：0.0====");
		return new PromotionActivityResult();
	}
}